﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using JSOCTNet.BIZ;
using JSOCTNet.IBIZ;

namespace UnitTestProject
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            string ossConfig = "{\"serverAddress\":\"https://oss-cn-shenzhen.aliyuncs.com\",\"userName\":\"LTAIH9BWpXZVLFE3\",\"password\":\"W01tM1Uo2JEEvDj2H6SukI6oHJG1D0\",\"bucket\":\"jht-nissp\",\"fileStoreType\":\"OSS\"}";
            //SendFile sendFile = new SendFile();
            //sendFile.Init(ossConfig);
            ISendFile iSendFile = FactorySendFile.CreateISendFile();
            iSendFile.Init(ossConfig);
            string strurl= iSendFile.GetPictureUri("0000004793", DateTime.Parse("2018-05-25 00:16:09"), "e31ea9f7a13a42678c77ebe2c2361dfe", @";20180525\0000\桂-MLX63600_CRD000000_20180525001609_学校岗入口_01.jpg");
            Assert.IsTrue(strurl.Contains("https"));
        }
    }
}
